#ifndef __GLOBAL_H__
#define __GLOBAL_H__

#include "csocket.h"
#include "threadpool.h"
#include "readconf.h"

#define LOGSTDERR(args...)
#define cpymem(str, sz, n) ((char*)memcpy(str, sz, (n)) + (n))

extern CSocket g_Socket; //全局socket类变量
extern CThreadPool g_threadpool; //全局线程池变量
extern pid_t pid;
extern pid_t ppid;
extern bool isMaster;

#endif // __GLOBAL_H__